<?php
class Modelplaybill extends ModelBase {
	
	protected $tablename = 'tbl_playbill';
	
	
	
	/**
	 *
	 * @var CDbConnection
	 */
	function __construct() {
		parent::__construct ('ienjoy');
	}
	
	
	
	// 加或修改路书
	function replaceTable($updatear) {
		$updatear ['data'] ['update_time'] = time ();
		return parent::replaceTable ( $this->tablename, $updatear ['data'] );
	}
	
	// 到路书列表
	function getTable($where,$limit,$prelimit=0) {
		$arr = parent::getTable ( $this->tablename, $where,$prelimit,$limit );
		return $arr;
	}
}
?>
